package com.fzk.blog.blog.controller;

import com.fzk.blog.bean.vo.DicInfo;
import com.fzk.blog.blog.service.IImgUrlService;
import com.fzk.blog.settings.service.IDicService;
import com.fzk.blog.utils.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author fzk
 * @date 2021-08-26 19:06
 */
@RestController
public class ImgUrlController {
    @Resource
    private IImgUrlService imgUrlService;

    @Resource
    private IDicService dicService;

    @GetMapping(path = "/blog/img_url")
    public Map<String, Object> getImgUrlList() {
        List<DicInfo> img_url =
                dicService.getDicInfoByTypeName("img_url");
        return ResponseResult.success("查询成功",img_url);
    }
}
